package com.dongdongshop.service;

import com.dongdongshop.pojo.TbBrand;
import com.dongdongshop.pojo.TbSpecification;
import com.dongdongshop.pojo.TbSpecificationOption;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface SpecificationService {

    PageInfo<TbSpecification> listSpecifications(Integer pageNum, Integer pageSize, String specName);

    int insertSpecificationAndTbSpecificationOption(String specName, List<TbSpecificationOption> tbSpecificationOptions);

    TbSpecification getSpecificationById(Long id);

    List<TbSpecificationOption> getTbSpecificationOptionsById(Long id);

    int updateSpecificationAndTbSpecificationOption(List<TbSpecificationOption> tbSpecificationOptions, String specName, Long id);

    int deleteSpecificationBatch(Long[] ids);

    List<TbSpecification> getSpecs();
}
